WPDesk\FS\TableRate\FreeShipping\FreeShippingNoticeGenerator S

Total Complexity 42
Dependencies 8
Dependents 1
Total lines 299
Lines of code 136
Logical lines of code 58
Comment lines 113
Methods 18
Properties 3

Methods 18

Method Rating Maintainability Complexity Lines of code
get_shipping_method_with_lowest_free_shipping_limit()
S
56 6 18
has_shipping_rate_with_free_shipping()
S
61 5 13
add_free_shipping_notice_if_should()
S
64 5 9
has_shipping_method_free_shipping_notice_enabled()
S
69 4 6
has_free_shipping_rate()
S
66 4 8
get_notice_text_message()
S
66 3 8
add_free_shipping_amount_to_session()
S
53 1 22
is_excluded_shipping_method()
S
71 2 5
clear_notices_if_cart_not_needs_shipping()
S
73 2 5
get_cart_value()
S
78 2 3
prepare_free_shipping_notice_data()
S
61 1 14
__construct()
S
74 1 5
get_notice_text_button_url()
S
79 1 3
get_notice_text_button_label()
S
78 1 3
hooks()
S
74 1 4
get_shipping_packages_count()
S
80 1 3
get_session()
S
81 1 3
is_package_rate_from_flexible_shipping()
S
74 1 4